package net.proef.sample.domain;

import net.proef.commons.lang.builder.ExtendedToStringStyle;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("address")
public class Address {

	private String address;
	private String city;
	private String state;
	private String zip;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this,
				ExtendedToStringStyle.SHORT_PREFIX_NO_FIELD_NAMES_STYLE)
				.appendSuper(super.toString()).append("city", this.city)
				.append("street", this.address).toString();
	}
}